using Nop.Web.Framework.Mvc.Routes;
using System.Web.Mvc;
using System.Web.Routing;

namespace Nop.Plugin.ActiveForever.ActiveChat
{
	public class ActiveChatRouteProvider : IRouteProvider
	{
		public int Priority { get { return 0; } }

        public void RegisterRoutes(RouteCollection routes)
		{
			//routes.MapHubs();

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChat", "ActiveChat", 
                new { controller = "ActiveChat", action = "ActiveChat" }, 
                new[] { "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChatClient", "ActiveChatClient", 
                new { controller = "ActiveChat", action = "ActiveChatClient" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChatHelp", "ActiveChatHelp", 
                new { controller = "ActiveChat", action = "ActiveChatHelp" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.LoadTranscripts", "LoadTranscripts", 
                new { controller = "ActiveChat", action = "LoadTranscripts" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.LoadTranscript", "LoadTranscript", 
                new { controller = "ActiveChat", action = "LoadTranscript" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.LoadBannedClients", "LoadBannedClients", 
                new { controller = "ActiveChat", action = "LoadBannedClients" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.InsertBannedClient", "InsertBannedClient", 
                new { controller = "ActiveChat", action = "InsertBannedClient" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.RemoveBannedClient", "RemoveBannedClient", 
                new { controller = "ActiveChat", action = "RemoveBannedClient" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.LoadCannedResponses", "LoadCannedResponses", 
                new { controller = "ActiveChat", action = "LoadCannedResponses" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.InsertCannedResponse", "InsertCannedResponse", 
                new { controller = "ActiveChat", action = "InsertCannedResponse" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.SendOfflineMessage", "SendOfflineMessage", 
                new { controller = "ActiveChat", action = "SendOfflineMessage" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChatChargeCard", "ActiveChatChargeCard", 
                new { controller = "ActiveChat", action = "ChargeCard" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChatActivate", "ActiveChatActivate", 
                new { controller = "ActiveChat", action = "ActivateAccount" }, 
                new[]{ "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });

            routes.MapRoute("Nop.Plugin.ActiveForever.ActiveChat.Configure", "Plugins/ActiveChat/Configure", 
                new { controller = "ActiveChat", action = "Configure" }, 
                new[] { "Nop.Plugin.ActiveForever.ActiveChat.Controllers" });
		}
	}
}